#-------------------------------------------------------------------
# Project Invasion of the aliens 
# name game.py
# purpose is the gun
#
# authors Chris L'Heureux, Tyler Austin Plante, Jackson Morse
# main author Tyler Austin Plante 
#
# created 12/3/12
# Copyright (C) Tyler Austin Plante
# License New BSD\
#-------------------------------------------------------------------
import pygame, math, sys, random

if pygame.mixer:
    pygame.mixer.init()

class Gun():
    def __init__(self):
        self.surfaces = []
        self.surfaces += [pygame.image.load("images/Player/player.png")]
        self.surfaces += [pygame.image.load("images/Player/player.png")]
        self.frame = 0
        self.maxFrame = len(self.surfaces)-1
        self.surface = self.surfaces[self.frame]
        self.rect = self.surface.get_rect()
        #self.angle = player.angle
        self.Visible = False

    def  __str__(self):
        return ("I'm the GUN and i am SHOOTING, screw gun control! " + str(self.rect.center) + str(self.speed) + str(self.living))
        

    def Shoot(self):
        self.Visible = True
